package com.chj.controller;

import com.chj.collector.CustomizeCollector;
import com.chj.data.TempData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

@RestController
@Slf4j
public class TestController {

    @GetMapping("/test")
    public ResponseEntity<?> test(){
        TempData.temp = new Random().nextDouble() * 100;
        log.info("--------> {}", TempData.temp);
        return ResponseEntity.ok().build();
    }
}
